import java.util.Scanner;

public class 求3数立方和 {
    public static void main(String[] args){
        a();
    }
    public  static  void a(){
        Scanner scanner=new Scanner(System.in);
        System.out.print("请输入第一个数X= ");
        int x=scanner.nextInt();
        System.out.print("请输入第二个数Y= ");
        int y=scanner.nextInt();
        System.out.print("请输入第三个数Z= ");
        int z=scanner.nextInt();
        System.out.println();
        System.out.println((int)(Math.pow(x,3)+Math.pow(y,3)+Math.pow(z,3)));

    }
}